package com.taotao.search.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.search.service.IItemService;

@Controller
@RequestMapping("/item")
public class ItemController {
	@Autowired
	private IItemService itemService;

	@RequestMapping("/info/{itemId}")
	public TaotaoResult getItemInfoByItemId(
			@PathVariable(value = "itemId") Long id) {
		TaotaoResult taotaoResult = this.itemService.getItemInfoByItemId(id);
		return taotaoResult;
	}
}
